package com.qf.air.controller;

import com.qf.air.service.EchcatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Author songfei
 * @Date 2021/11/5 21:21
 * @Version 1.0
 */
@RestController
@CrossOrigin(allowCredentials = "true")
public class EchartsController {

    @Autowired
    private EchcatsService echcatsService;
    @GetMapping("/echarts/airTopFive")
    public List<Map> airTopFive() throws IOException {
        return echcatsService.airTopFive();
    }
}
